<?php
    echo "<h2> Master Articles </h2>";
    
    $status[1] = 'All';
    $status[2] = 'Published';
    $status[3] = ' > 1 month';
    $status[4] = 'Stored';
    $status[5] = ' > 1 month';
    
    echo "<form id='filter'>";
        echo "<label id='left'>Category : </label>"; 
        echo "<label id='center'>".$form->select('status',$status); 
        echo "&nbsp "; 
        echo $ajax->link('[ Add New ]',
                    array('controller'=>'articles','action'=>'add_admin'),
                    array('update'=>'slip','class'=>'sky','complete'=>"make_slip();")
                 ); 
        echo "</label>";       
    echo "</form>";
    

    
    echo $ajax->observeForm('filter',
                            array('url'=>array('controller'=>'articles','action'=>'filter_admin'),
                            'update'=>'result','frequency' => 0.2)
                            );
    echo "<br>"; 
    echo "<div id='result'></div>";  
    echo "<div id='slip'></div>";        
?>